package br.com.friendzone.modelo.util;

import br.com.friendzone.annotations.Chave;
import br.com.friendzone.annotations.Coluna;

@Chave(nome = "SEQUENCE_GRUPO")
public class Sequence extends SolrEntity{

	private static final long serialVersionUID = 1L;
	
	@Coluna(nome="idSequence")
	private String idSequence;

	@Coluna(nome="nomeSequence")
	private String nomeSequence;

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Sequence other = (Sequence) obj;
		if (idSequence == null) {
			if (other.idSequence != null)
				return false;
		} else if (!idSequence.equals(other.idSequence))
			return false;
		if (nomeSequence == null) {
			if (other.nomeSequence != null)
				return false;
		} else if (!nomeSequence.equals(other.nomeSequence))
			return false;
		return true;
	}
	
	public String getIdSequence() {
		return idSequence;
	}

	public String getNomeSequence() {
		return nomeSequence;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((idSequence == null) ? 0 : idSequence.hashCode());
		result = prime * result + ((nomeSequence == null) ? 0 : nomeSequence.hashCode());
		return result;
	}

	public void setIdSequence(String idSequence) {
		this.idSequence = idSequence;
	}

	public void setNomeSequence(String nomeSequence) {
		this.nomeSequence = nomeSequence;
	}
}
